# 
# rest_instance_methods.rb
# 
# Created on 08/08/2007, 15:10:55
# 
# DEFAULT REST METHODS
# Taken from scaffolding.
# 
# EmmanuelOga.wordpress.com

module AutoRest
module DefaultMethods

  module Index
    # GET /resources
    # GET /resources.xml
    def index
      ar_get_resources()

      respond_to do |format|
        format.html { render ardata.templates.index }
        format.js   { render ardata.templates.index_partial }
        format.xml  { render :xml => @resources.to_xml }
      end
    end
  end

end
end